{{include file='layout/header.tpl'}}

{{include file='form/search.tpl'
  action=$_param.page
  value=$_param.get.s|default
}}

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

<table class="table_edit">
<thead>
<tr>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.id
  name='post_id'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.key_id
  name='member_id'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.level
  name='level'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.avatar
  name='avatar'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.login_mail|cat:' - '|cat:$smarty.config.name
  name='login_mail'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.birth_day
  name='birth_day'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.is_active
  name='is_active'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.login_date
  name='login_date'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.update_date
  name='update_date'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.publish_date
  name='publish_date'
  query='s'
}}</th>
</tr>
</thead>
{{foreach $data.list as $v}}
<tr>
<td>{{$v->post_id}}</td>
<td>{{$v->member_id}}</td>
<td>{{$v->level}}</td>
<td>{{$v->avatar|publishMemberAvatar}}</td>
<td>
<a href="{{$_param.url}}member/{{$v->member_id}}">公開</a>
<a href="{{$_param.page}}/{{$v->member_id}}">{{$v->login_mail}} - {{$v->name}}</a>
</td>
<td>{{if $v->birth_day}}{{$v->birth_day->format('Y-m-d')}}{{/if}}</td>
<td>{{if $v->is_active}}{{$smarty.config.active}}{{else}}{{$smarty.config.notactive}}{{/if}}</td>
<td>{{if $v->login_date|default}}<a href="{{$_param.edit}}member/login_history/{{$v->post_id}}">{{$v->login_date->format('Y-m-d H:i:s')}}</a>{{/if}}</td>
<td>{{$v->update_date->format('Y-m-d H:i:s')}}</td>
<td>{{$v->publish_date->format('Y-m-d H:i:s')}}</td>
</tr>
{{/foreach}}
</table>

<a href="{{$_param.page}}/0">{{$smarty.config.newpost}}</a><br/>

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

{{include file='layout/footer.tpl'}}